import type { AppRouteRecordRaw } from '@/router/types';

// 根路由
export const RootRoute: AppRouteRecordRaw = {
  path: '/',
  name: 'Root',
  redirect: '/login',
  meta: {
    title: 'Root',
  },
};

// 登录
export const LoginRoute: AppRouteRecordRaw = {
  path: '/login',
  name: 'Login',
  component: () => import('@/views/user/login.vue'),
  meta: {
    title: '登录',
  },
};

// 首页
export const DataInput: AppRouteRecordRaw = {
  path: '/dataInput',
  name: 'DataInput',
  component: () => import('@/views/dataInput/index.vue'),
  meta: {
    title: '数据录入',
  },
};

export const BasicRoutes = [
  RootRoute,
  LoginRoute,
  DataInput
]

